package com.ruoyi.system.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wxcw")
public class CwUserController extends BaseController {
    @Autowired
    private ISysUserService sysUserService;
    /**
     * 获取用户信息详细信息
     */
    @GetMapping("/getUserInfo/{username}")
    public AjaxResult getUserInfo(@PathVariable("username") String username){
        return success(sysUserService.selectUserByUserName(username));
    }
}
